package ch.zbw.swt.sysventory.zzzzRIP;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import IMG.GetPath;
import javax.swing.JList;
import javax.swing.border.LineBorder;
import javax.swing.AbstractListModel;
import javax.swing.border.TitledBorder;
import javax.swing.ListSelectionModel;
import javax.swing.JTable;

public class GUIHistorie {

	private JFrame frame;
	private JScrollPane scrollpane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					GUIHistorie window = new GUIHistorie();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public GUIHistorie() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.getContentPane().setBackground(Color.WHITE);
		frame.setBackground(Color.WHITE);
		frame.setBounds(100, 100, 770, 480);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setResizable(false);
		
		
		JPanel panel = new JPanel();
		panel.setBackground(Color.WHITE);
		panel.setBounds(10, 11, 744, 83);
		frame.getContentPane().add(panel);
		panel.setLayout(null);
		
		//Bilder
		ImageIcon goArrow;
		ImageIcon backArrow;
		goArrow = new ImageIcon(
				GetPath.class.getResource("go.png"));			
		backArrow = new ImageIcon(
				GetPath.class.getResource("back.png"));
		
		JLabel lblMenu = new JLabel("Historie:");
		lblMenu.setFont(new Font("Impact", Font.PLAIN, 36));
		lblMenu.setBounds(297, 11, 209, 61);
		panel.add(lblMenu);
		
		JButton btnNewButton_1 = new JButton(backArrow);
		btnNewButton_1.setBackground(Color.WHITE);
		btnNewButton_1.setBounds(24, 11, 129, 61);
		btnNewButton_1.setBorder(null);
		panel.add(btnNewButton_1);
		
		JLabel lblDynamischh = new JLabel("dynamischt");
		lblDynamischh.setFont(new Font("Impact", Font.PLAIN, 18));
		lblDynamischh.setBounds(318, 67, 93, 56);
		panel.add(lblDynamischh);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBackground(Color.BLACK);
		panel_1.setBounds(200, 185, 162, 221);
		panel.add(panel_1);
		panel_1.setLayout(new BorderLayout(0, 0));
		

		
		JList list = new JList();
		list.setModel(new AbstractListModel() {
			String[] values = new String[] {"Computer", "Olav ", "Livio\t", "Hallo", "Computer", "Olav ", "Livio\t", "Hallo", "Computer", "Olav ", "Livio\t", "Hallo", "Computer", "Olav ", "Livio\t", "Hallo", "Computer", "Olav ", "Livio\t", "Hallo"};
			public int getSize() {
				return values.length;
			}
			public Object getElementAt(int index) {
				return values[index];
			}
		});
		

		JScrollPane scrollPane = new JScrollPane(list);
		scrollPane.setToolTipText("");
		scrollPane.setSize(new Dimension(200,200));
		panel_1.add(scrollPane, BorderLayout.CENTER);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBackground(Color.BLACK);
		panel_2.setBounds(372, 185, 162, 221);
		panel.add(panel_2);
		panel_2.setLayout(new BorderLayout(0, 0));
		
		JScrollPane scrollPane_1 = new JScrollPane((Component) null);
		scrollPane_1.setToolTipText("");
		scrollPane_1.setSize(new Dimension(200, 200));
		panel_2.add(scrollPane_1, BorderLayout.CENTER);
		
		JList list_1 = new JList();
		list_1.setModel(new AbstractListModel() {
			String[] values = new String[] {"Computer", "Olav ", "Livio\t", "Hallo", "Computer", "Olav ", "Livio\t", "Hallo", "Computer", "Olav ", "Livio\t", "Hallo", "Computer", "Olav ", "Livio\t", "Hallo", "Computer", "Olav ", "Livio\t", "Hallo"};
			public int getSize() {
				return values.length;
			}
			public Object getElementAt(int index) {
				return values[index];
			}
		});
		scrollPane_1.setViewportView(list_1);
		
		JLabel lblVersik = new JLabel("Version");
		lblVersik.setFont(new Font("Impact", Font.PLAIN, 16));
		lblVersik.setBounds(372, 145, 162, 29);
		panel.add(lblVersik);
		
		JLabel lblDatum = new JLabel("Datum");
		lblDatum.setFont(new Font("Impact", Font.PLAIN, 16));
		lblDatum.setBounds(200, 145, 162, 29);
		panel.add(lblDatum);
			   
	
		
		

	}
}
